/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view.GUI.sidepanels;

import java.awt.Color;
import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

/**
 *
 * @author Arfeniel
 */
public class LabelRenderer extends JLabel implements TableCellRenderer {
    public LabelRenderer() {
        setOpaque(true);
    }

    public Component getTableCellRendererComponent(JTable table, Object label, boolean isSelected, boolean hasFocus, int row, int column) {
        JLabel lab = (JLabel)label;
        setBackground(Color.WHITE);
        this.setText(lab.getText());
        return this;
    }
}